import request from '@/utils/request'

export function getList(pageNum, pageSize, shcoolName, adminPhone) {
    return request({
      url: '/web/school/getPage',
      method: 'get',
      params: { pageNum, pageSize, shcoolName, adminPhone }
    })
}

export function getEdi(id) {
    return request({
      url: 'web/school/get/' + id,
      method: 'get'
    //  params: {id}
    })
}

export function del(id) {
    return request({
      url: '/web/school/del/' + id,
      method: 'DELETE'
    //  params: {id}
    })
}

export function add(data) {
  return request({
    url: '/web/school/add',
    method: 'post',
    data
  })
}

export function update(data) {
  return request({
    url: '/web/school/update',
    method: 'post',
    data
  })
}

export function getSch() {
  return request({
    url: '/web/school/getSchoolList',
    method: 'get'
  })
}